﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.WeChatMall.Domain.Entitys.Orders;

namespace ZilLion.Service.WeChatMall.Domain.Repositorys.Interface.Order
{
    public interface IPrePayOrderSendInfoRepository
    {
        #region 查询

        /// <summary>
        ///     获取订单配送信息
        /// </summary>
        /// <param name="sno"></param>
        /// <returns></returns>
        PrePayOrderDeliverySendEntity GetOrderSendDeliveryInfo(string sno);

        IList<PrePayOrderDeliverySendEntity> GetOrderSendDeliveryInfos(IList<string> snolist);

        #endregion

        #region 保存

        /// <summary>
        ///     保存订单配送信息
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="orderMain"></param>
        /// <param name="unit"></param>
        void SaveOrderSendDelivery(PrePayOrderDeliverySendEntity entity, OrderMainInfoDto orderMain,
            UnitOfWork unit = null);


        void RemoveBatch(string sno, UnitOfWork unit = null);

        #endregion
    }
}